import request from "../request";
import { type baseResponse } from '@/api/request'

export interface UserInterface {
  id: number,
  areaId: null | number,
  isAll: number,
  username: string,
  password: string,
  token: string
}

export function postLogin (data: { username: string, password: string }) {
  return request.post<baseResponse<UserInterface>>('/index/login', data)
}